import data_control from "../../../engines/libs/data_control";

const {ccclass, property} = cc._decorator;

@ccclass
export default class level_goldMiner_landmark extends cc.Component {

    @property({type:cc.String,tooltip:"可能出现的物品id"})
    ariseIds:string[] = [];

    @property({type:cc.Integer,tooltip:"可能出现的物品概率"})
    ariseWeights:number[] = [];

    getObjId(){
        let index = data_control.getRandIPosByWeights(this.ariseWeights);
        return this.ariseIds[index];
    }

}
